package com.chb.service.sys.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chb.entity.sys.Role;
import com.chb.repository.sys.RoleRepository;
import com.chb.service.sys.RoleService;

@Service("roleService")
public class RoleServiceImpl implements  RoleService{

	@Resource
	private RoleRepository  roleRepository;
	
	@Override
	public List<Role> findRoleByUserId(Integer id) {
		return this.roleRepository.findRoleByUserId(id);
	}

	@Override
	public Role findOne(Integer id) {
		return this.roleRepository.findOne(id);
	}
	
	

}
